using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ImageAnalystTools._ClassificationandPatternRecognition
{
    /// <summary>
    /// <para>Compute Confusion Matrix</para>
    /// <para>Computes a confusion matrix with errors of omission and commission and derives a kappa index of agreement and an overall accuracy between the classified map and the reference data.</para>
    /// <para>计算具有遗漏和委托误差的混淆矩阵，并得出一致的 kappa 指数以及分类地图与参考数据之间的总体准确性。</para>
    /// </summary>    
    [DisplayName("Compute Confusion Matrix")]
    public class ComputeConfusionMatrix : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ComputeConfusionMatrix()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_accuracy_assessment_points">
        /// <para>Input Accuracy Assessment Points</para>
        /// <para>The accuracy assessment point feature class, created from the Create Accuracy Assessment Points tool, containing the CLASSIFIED and GROUND_TRUTH fields.</para>
        /// <para>精度评估点要素类，通过创建精度评估点工具创建，包含 CLASSIFIED 和 GROUND_TRUTH 字段。</para>
        /// </param>
        /// <param name="_out_confusion_matrix">
        /// <para>Output Confusion Matrix</para>
        /// <para><xdoc>
        ///   <para>The output file name of the confusion matrix in table format.</para>
        ///   <para>The format of the table is determined by the output location and path. By default, the output will be a geodatabase table. If the path is not in a geodatabase, specify a .dbf extension to save it in dBASE format.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>混淆矩阵的输出文件名，采用表格格式。</para>
        ///   <para>表的格式由输出位置和路径决定。默认情况下，输出将为地理数据库表。如果路径不在地理数据库中，请指定 .dbf 扩展名以将其保存为 dBASE 格式。</para>
        /// </xdoc></para>
        /// </param>
        public ComputeConfusionMatrix(object _in_accuracy_assessment_points, object _out_confusion_matrix)
        {
            this._in_accuracy_assessment_points = _in_accuracy_assessment_points;
            this._out_confusion_matrix = _out_confusion_matrix;
        }
        public override string ToolboxName => "Image Analyst Tools";

        public override string ToolName => "Compute Confusion Matrix";

        public override string CallName => "ia.ComputeConfusionMatrix";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_accuracy_assessment_points, _out_confusion_matrix];

        /// <summary>
        /// <para>Input Accuracy Assessment Points</para>
        /// <para>The accuracy assessment point feature class, created from the Create Accuracy Assessment Points tool, containing the CLASSIFIED and GROUND_TRUTH fields.</para>
        /// <para>精度评估点要素类，通过创建精度评估点工具创建，包含 CLASSIFIED 和 GROUND_TRUTH 字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Accuracy Assessment Points")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_accuracy_assessment_points { get; set; }


        /// <summary>
        /// <para>Output Confusion Matrix</para>
        /// <para><xdoc>
        ///   <para>The output file name of the confusion matrix in table format.</para>
        ///   <para>The format of the table is determined by the output location and path. By default, the output will be a geodatabase table. If the path is not in a geodatabase, specify a .dbf extension to save it in dBASE format.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>混淆矩阵的输出文件名，采用表格格式。</para>
        ///   <para>表的格式由输出位置和路径决定。默认情况下，输出将为地理数据库表。如果路径不在地理数据库中，请指定 .dbf 扩展名以将其保存为 dBASE 格式。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Confusion Matrix")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_confusion_matrix { get; set; }


        public ComputeConfusionMatrix SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}